<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::common::NormalGenerator&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1common_1_1_normal_generator.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classpcl_1_1common_1_1_normal_generator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::common::NormalGenerator&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpcl_1_1common_1_1_normal_generator.html" title="NormalGenerator class generates a random number from a normal distribution specified by (mean,...">NormalGenerator</a> class generates a random number from a normal distribution specified by (mean, sigma).  
 <a href="classpcl_1_1common_1_1_normal_generator.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="random_8h_source.html">random.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a78c8256d2a90b35ae52dd7b59ac34fb6"><td class="memItemLeft" align="right" valign="top"><a id="a78c8256d2a90b35ae52dd7b59ac34fb6"></a>
typedef boost::mt19937&#160;</td><td class="memItemRight" valign="bottom"><b>EngineType</b></td></tr>
<tr class="separator:a78c8256d2a90b35ae52dd7b59ac34fb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ec1fcada543d770217e41c1235454f9"><td class="memItemLeft" align="right" valign="top"><a id="a8ec1fcada543d770217e41c1235454f9"></a>
typedef <a class="el" href="structpcl_1_1common_1_1normal__distribution.html">normal_distribution</a>&lt; T &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><b>DistributionType</b></td></tr>
<tr class="separator:a8ec1fcada543d770217e41c1235454f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab1b5b70bfca92f4a5ef58bbc3f06248a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#ab1b5b70bfca92f4a5ef58bbc3f06248a">NormalGenerator</a> (T mean=0, T sigma=1, pcl::uint32_t seed=-1)</td></tr>
<tr class="separator:ab1b5b70bfca92f4a5ef58bbc3f06248a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae441b14b3aa9920b6062c7df492f1af6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#ae441b14b3aa9920b6062c7df492f1af6">NormalGenerator</a> (const <a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a> &amp;parameters)</td></tr>
<tr class="separator:ae441b14b3aa9920b6062c7df492f1af6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c21e31333077bcc9e6fbe24af5ccf48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#a0c21e31333077bcc9e6fbe24af5ccf48">setSeed</a> (pcl::uint32_t seed)</td></tr>
<tr class="separator:a0c21e31333077bcc9e6fbe24af5ccf48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae873e095a8cc659c87ea04701d96403e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#ae873e095a8cc659c87ea04701d96403e">setParameters</a> (T mean, T sigma, pcl::uint32_t seed=-1)</td></tr>
<tr class="separator:ae873e095a8cc659c87ea04701d96403e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b7be619cedfeff9027ceef2e762ea7c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#a5b7be619cedfeff9027ceef2e762ea7c">setParameters</a> (const <a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a> &amp;parameters)</td></tr>
<tr class="separator:a5b7be619cedfeff9027ceef2e762ea7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab29c9fd2cef44ae0373c2ddbabfd2f17"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#ab29c9fd2cef44ae0373c2ddbabfd2f17">getParameters</a> ()</td></tr>
<tr class="separator:ab29c9fd2cef44ae0373c2ddbabfd2f17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a998f37de82b71a36d5c14212f08e5978"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#a998f37de82b71a36d5c14212f08e5978">run</a> ()</td></tr>
<tr class="separator:a998f37de82b71a36d5c14212f08e5978"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:aa93f794f715d1dbb1a81186a7e3dc866"><td class="memItemLeft" align="right" valign="top"><a id="aa93f794f715d1dbb1a81186a7e3dc866"></a>
<a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a></td></tr>
<tr class="memdesc:aa93f794f715d1dbb1a81186a7e3dc866"><td class="mdescLeft">&#160;</td><td class="mdescRight">parameters <br /></td></tr>
<tr class="separator:aa93f794f715d1dbb1a81186a7e3dc866"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca44fba391b28d080ac58138349583a5"><td class="memItemLeft" align="right" valign="top"><a id="aca44fba391b28d080ac58138349583a5"></a>
DistributionType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a></td></tr>
<tr class="memdesc:aca44fba391b28d080ac58138349583a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">normal distribution <br /></td></tr>
<tr class="separator:aca44fba391b28d080ac58138349583a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac13f825dae3407163a51f2ef3a2112a5"><td class="memItemLeft" align="right" valign="top"><a id="ac13f825dae3407163a51f2ef3a2112a5"></a>
EngineType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a></td></tr>
<tr class="memdesc:ac13f825dae3407163a51f2ef3a2112a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">random number generator <br /></td></tr>
<tr class="separator:ac13f825dae3407163a51f2ef3a2112a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e66edca6149825d218f1074f2d783e0"><td class="memItemLeft" align="right" valign="top"><a id="a7e66edca6149825d218f1074f2d783e0"></a>
boost::variate_generator&lt; EngineType &amp;, DistributionType &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html#a7e66edca6149825d218f1074f2d783e0">generator_</a></td></tr>
<tr class="memdesc:a7e66edca6149825d218f1074f2d783e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">generator of random number from a normal distribution <br /></td></tr>
<tr class="separator:a7e66edca6149825d218f1074f2d783e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class pcl::common::NormalGenerator&lt; T &gt;</h3>

<p><a class="el" href="classpcl_1_1common_1_1_normal_generator.html" title="NormalGenerator class generates a random number from a normal distribution specified by (mean,...">NormalGenerator</a> class generates a random number from a normal distribution specified by (mean, sigma). </p>
<dl class="section author"><dt>作者</dt><dd>Nizar Sallem </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ab1b5b70bfca92f4a5ef58bbc3f06248a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1b5b70bfca92f4a5ef58bbc3f06248a">&#9670;&nbsp;</a></span>NormalGenerator() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html">pcl::common::NormalGenerator</a>&lt; T &gt;::<a class="el" href="classpcl_1_1common_1_1_normal_generator.html">NormalGenerator</a> </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>mean</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>sigma</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pcl::uint32_t&#160;</td>
          <td class="paramname"><em>seed</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mean</td><td>normal mean </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sigma</td><td>normal variation </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">seed</td><td>seeding value </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  : <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a> (mean, sigma)</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  , <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#a7e66edca6149825d218f1074f2d783e0">generator_</a> (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a>, <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>) </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;{</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a> = Parameters (mean, sigma, seed);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed != -1)</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a>.seed (seed);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1common_1_1_normal_generator_html_a7e66edca6149825d218f1074f2d783e0"><div class="ttname"><a href="classpcl_1_1common_1_1_normal_generator.html#a7e66edca6149825d218f1074f2d783e0">pcl::common::NormalGenerator::generator_</a></div><div class="ttdeci">boost::variate_generator&lt; EngineType &amp;, DistributionType &gt; generator_</div><div class="ttdoc">generator of random number from a normal distribution</div><div class="ttdef"><b>Definition:</b> random.h:226</div></div>
<div class="ttc" id="aclasspcl_1_1common_1_1_normal_generator_html_aa93f794f715d1dbb1a81186a7e3dc866"><div class="ttname"><a href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">pcl::common::NormalGenerator::parameters_</a></div><div class="ttdeci">Parameters parameters_</div><div class="ttdoc">parameters</div><div class="ttdef"><b>Definition:</b> random.h:220</div></div>
<div class="ttc" id="aclasspcl_1_1common_1_1_normal_generator_html_ac13f825dae3407163a51f2ef3a2112a5"><div class="ttname"><a href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">pcl::common::NormalGenerator::rng_</a></div><div class="ttdeci">EngineType rng_</div><div class="ttdoc">random number generator</div><div class="ttdef"><b>Definition:</b> random.h:224</div></div>
<div class="ttc" id="aclasspcl_1_1common_1_1_normal_generator_html_aca44fba391b28d080ac58138349583a5"><div class="ttname"><a href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">pcl::common::NormalGenerator::distribution_</a></div><div class="ttdeci">DistributionType distribution_</div><div class="ttdoc">normal distribution</div><div class="ttdef"><b>Definition:</b> random.h:222</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ae441b14b3aa9920b6062c7df492f1af6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae441b14b3aa9920b6062c7df492f1af6">&#9670;&nbsp;</a></span>NormalGenerator() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html">pcl::common::NormalGenerator</a>&lt; T &gt;::<a class="el" href="classpcl_1_1common_1_1_normal_generator.html">NormalGenerator</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a> &amp;&#160;</td>
          <td class="paramname"><em>parameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parameters</td><td>normal distribution parameters and seed </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  : <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a> (parameters)</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  , <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a> (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.mean, <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.sigma)</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  , <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#a7e66edca6149825d218f1074f2d783e0">generator_</a> (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a>, <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>) </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;{</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  <span class="keywordflow">if</span>(<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed != -1)</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a>.seed (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ab29c9fd2cef44ae0373c2ddbabfd2f17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab29c9fd2cef44ae0373c2ddbabfd2f17">&#9670;&nbsp;</a></span>getParameters()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a>&amp; <a class="el" href="classpcl_1_1common_1_1_normal_generator.html">pcl::common::NormalGenerator</a>&lt; T &gt;::getParameters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>normal distribution parameters and generator seed </dd></dl>
<div class="fragment"><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a998f37de82b71a36d5c14212f08e5978"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a998f37de82b71a36d5c14212f08e5978">&#9670;&nbsp;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classpcl_1_1common_1_1_normal_generator.html">pcl::common::NormalGenerator</a>&lt; T &gt;::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>a randomly generated number in the normal distribution (mean, sigma) </dd></dl>
<div class="fragment"><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#a7e66edca6149825d218f1074f2d783e0">generator_</a> ()); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a5b7be619cedfeff9027ceef2e762ea7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b7be619cedfeff9027ceef2e762ea7c">&#9670;&nbsp;</a></span>setParameters() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1common_1_1_normal_generator.html">pcl::common::NormalGenerator</a>&lt; T &gt;::setParameters </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1common_1_1_normal_generator_1_1_parameters.html">Parameters</a> &amp;&#160;</td>
          <td class="paramname"><em>parameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set generator parameters </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parameters</td><td>normal distribution parameters and seed </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;{</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a> = parameters;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">#if BOOST_VERSION &gt;= 104700</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;  <span class="keyword">typename</span> DistributionType::param_type params (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.mean, <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.sigma);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>.param (params);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a> = DistributionType (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.mean, <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.sigma);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>.reset ();</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#a7e66edca6149825d218f1074f2d783e0">generator_</a>.distribution () = <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;  <span class="keywordflow">if</span> (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed != -1)</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a>.seed (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed);</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ae873e095a8cc659c87ea04701d96403e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae873e095a8cc659c87ea04701d96403e">&#9670;&nbsp;</a></span>setParameters() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1common_1_1_normal_generator.html">pcl::common::NormalGenerator</a>&lt; T &gt;::setParameters </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>sigma</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pcl::uint32_t&#160;</td>
          <td class="paramname"><em>seed</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the normal number generator parameters </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mean</td><td>mean of the normal distribution </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sigma</td><td>standard variation of the normal distribution </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">seed</td><td>random number generator seed (applied if != -1) </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;{</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.mean = mean;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.sigma = sigma;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed = seed;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#if BOOST_VERSION &gt;= 104700</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  <span class="keyword">typename</span> DistributionType::param_type params (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.mean, <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.sigma);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>.param (params);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a> = DistributionType (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.mean, <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.sigma);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>.reset ();</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#a7e66edca6149825d218f1074f2d783e0">generator_</a>.distribution () = <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aca44fba391b28d080ac58138349583a5">distribution_</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  <span class="keywordflow">if</span> (seed != -1)</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a>.seed (<a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a0c21e31333077bcc9e6fbe24af5ccf48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c21e31333077bcc9e6fbe24af5ccf48">&#9670;&nbsp;</a></span>setSeed()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1common_1_1_normal_generator.html">pcl::common::NormalGenerator</a>&lt; T &gt;::setSeed </td>
          <td>(</td>
          <td class="paramtype">pcl::uint32_t&#160;</td>
          <td class="paramname"><em>seed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change seed value </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">seed</td><td>new seed value </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;{   </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  <span class="keywordflow">if</span> (seed != -1)</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#aa93f794f715d1dbb1a81186a7e3dc866">parameters_</a>.seed = seed;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <a class="code" href="classpcl_1_1common_1_1_normal_generator.html#ac13f825dae3407163a51f2ef3a2112a5">rng_</a>.seed(seed);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>common/include/pcl/common/<a class="el" href="random_8h_source.html">random.h</a></li>
<li>common/include/pcl/common/impl/<a class="el" href="random_8hpp_source.html">random.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>common</b></li><li class="navelem"><a class="el" href="classpcl_1_1common_1_1_normal_generator.html">NormalGenerator</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
